import request from '@/utils/request'

// 查询企业份额申请列表
export function listenterpriseShareApply(query) {
    return request({
        url: '/enterprise/enterpriseShareApply/list',
        method: 'get',
        params: query
    })
}

// 查询企业份额申请详细
export function getenterpriseShareApply(id) {
    return request({
        url: '/enterprise/enterpriseShareApply/' + id,
        method: 'get'
    })
}

// 新增企业份额申请
export function addenterpriseShareApply(data) {
    return request({
        url: '/enterprise/enterpriseShareApply',
        method: 'post',
        data: data
    })
}

// 修改企业份额申请
export function updateenterpriseShareApply(data) {
    return request({
        url: '/enterprise/enterpriseShareApply',
        method: 'put',
        data: data
    })
}

// 删除企业份额申请
export function delenterpriseShareApply(id) {
    return request({
        url: '/enterprise/enterpriseShareApply/' + id,
        method: 'delete'
    })
}

// 导出企业份额申请
export function exportenterpriseShareApply(query) {
    return request({
        url: '/enterprise/enterpriseShareApply/export',
        method: 'get',
        params: query
    })
}

// 新增企业用车申请
export function submit(data) {
    return request({
        url: '/enterprise/enterpriseShareApply/submit',
        method: 'post',
        data: data
    })
}